
/* Odd loop using a for loop
Companey Name: Valtech India System Pvt. Ltd.
Developer's Name: Md Ali Umar
Dated: 22/9/2011 */

#include<stdio.h>
#include<conio.h>
void main()
{

	int num;

	char another = 'y' ;


	clrscr();

	for(; another == 'y';)

	{

		printf("\n\n\t\tEnter a number: ");

		scanf("%d", &num);

		printf("\n\t\tSquare of %d is %d\n\n", num, num*num);

		printf("\n\n\t\tWant to Enter another number y/n ");

		another = getche();


	}

	getch();

}